import request from './request'

// 首页默认数据
export const HomeDefaultApi = () => request.get('/6666')

// 首页数据
export const HomeDataApi = (params) => request.get('/6666',{params})

// 登录接口
export const LoginApi = (params) => request.post('/1024/login', params)

// 注册接口
export const RegisterApi = (params) => request.post('/1024/register', params)

// 进入练习页面
// /1314/{actionCode}/{testType}
export const ChoosePageApi = (params) => request.get(`/1314/${params.actionCode}/${params.testType}`)

// 快速刷题
export const FastAnswerApi = () => request.get('/4698')

// 获取题目列表
export const GetSubjectListApi = (params) => request.post('/1314', params)

// 提交答案
export const SubmitApi = (params) => request.put('/1314', params)

// 切换面试题科目
export const ChangeSubjectApi = (params) => request.get(`/6666/${params.actionCode}`)

// 侧边科目栏
export const ChangeSideSubjectApi = () => request.get('/6666/field')

// 设置默认学科
export const SetDefaultSubApi = (params) => request.post(`/6666/${params.actionCode}`)

